<?php
	$page_name=basename($_SERVER['SCRIPT_FILENAME']);
	$IsPreserved	= 'Y';
	$IsProcess		= $_REQUEST['IsProcess'];
	include("general_include.php");
	
	if($IsProcess <> 'Y')
	{
		include "top.php";
	}
	
	
	
	if($IsProcess == 'Y')
{
   $Sqltype = "SELECT * FROM ".TABLEPREFIX."_user_type_user_relation WHERE user_id='".$_SESSION['user_id']."'";
	$typeArr = $UserManagerObjAjax->GetRecords("All",$Sqltype);
	$Numtype = count($typeArr);
	$is_coach = 0;
	$is_partner = 0;
	for($t=0;$t<$Numtype;$t++)
	{
	   if($typeArr[$t]['user_type_id']==1)
		  $is_coach = 1;
	   if($typeArr[$t]['user_type_id']==3)
		  $is_partner = 1;
	}
}
	$smarty->assign('is_coach',$is_coach);
	$smarty->assign('is_partner',$is_partner);
	
	$smarty->assign('userId',$_SESSION['user_id']);
	$smarty->display('schedule.tpl');
	
	if($IsProcess <> 'Y')
	{
		include "footer.php";
	}
?>